package com.joint.cloud.common.exception.msg;

public class ResourceNotExistExceptionErrorMsg extends BaseAIOpsExceptionErrorMsg {

    private String resourceType;

    private Object resourceId;

    public ResourceNotExistExceptionErrorMsg(String resourceType, Object resourceId) {
        this.resourceType = resourceType;
        this.resourceId = resourceId;
    }

    @Override
    public String generateErrorMsg() {
        return "Resource '" + resourceType + "' ( with ID " + resourceId.toString() + " ) Not Exists!";
    }

    @Override
    public String generateErrorMsgLocal() {
        return "资源'" + resourceType + "'（ID为" + resourceId.toString() + "）不存在！";
    }
}
